<!doctype html>
<html>
  <head>
    <meta charset="utf-8"/>
    <title>在线运行 main.py</title>
    <link rel="stylesheet" href="https://pyscript.net/latest/pyscript.css" />
    <script defer src="https://pyscript.net/latest/pyscript.js"></script>
  </head>
  <body>
    打开浏览器控制台即可看到运行结果
    <py-script src="main.py"></py-script>
  </body>
</html>